<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/jsp/tag.jsp" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>车队管理列表</title>
<script type="text/javascript">

      //删除
        function del(id){
        	//location.href='${ctx}/xx/view.action?claimId='+claimId;
        	if(confirm("确定要删除？")){
        		alert("删除" +id);
                /* $.ajaxPost(path+"/xx/deleteData.action",
                        {"accountId":accountId},
                        function(data){
                            if(data.msg = "success"){
                                alert("提示：删除成功！");
                                window.location.href = path+"/xx/index.action";
                            }else{
                                alert("提示：删除失败！");
                            }
                        },
                        "json"
                ) */
            }
        }
	</script>
</head>
<body >
<!-- topbar starts -->
	<c:import url="../../../../common/jsp/top.jsp"></c:import>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">
				
			<!-- left menu starts -->
			<c:import url="../../../../common/jsp/left.jsp"></c:import>
			<!-- left menu ends -->
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			<div id="content" class="span10">
			<!-- content starts -->
			<div class="row-fluid sortable">
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2>视频列表</h2>
						<div class="box-icon">
							<button type="button" class="btn btn-primary" onclick="window.location.href='${ctx}/manage/team/add'" >上传视频</button>
						</div>
					</div>
					<div class="box-content">
						<table class="table table-bordered">
							  <thead>
								  <tr>
									  <th style="text-align:center">序号</th>
									  <th style="text-align:center">视频名称</th>
									  <th style="text-align:center">所属赛事</th>
									  <th style="text-align:center">创建时间</th>
									  <th style="text-align:center">操作</th>                                          
								  </tr>
							  </thead>   
							  <tbody>
							  <c:forEach items="${pager.searchList }" var="item" varStatus="count" >
								<tr>
									<td>${count.count }</td>
									<td class="center">${item.videoName }</td>
									<td class="center">${item.matchType.matchTypeName }</td>
									<td class="center">${item.type }</td>
									<td class="center"><fmt:formatDate pattern="yyyy-MM-dd" value="${item.createTime }" /></td>
									<td class="center">
										<a class="btn btn-success" href="${ctx }/manage/team/detail?id=${item.id }">
										<i class="icon-zoom-in icon-white"></i>  
										查看                                            
									</a>
									<a class="btn btn-info" href="javascript:toUpdate('${item.id}')">
										<i class="icon-edit icon-white"></i>  
										编辑                                       
									</a>
									<a class="btn btn-danger" href="javascript:del('${item.id}')">
										<i class="icon-trash icon-white"></i> 
										删除
									</a>
									</td> 
								</tr>
								</c:forEach>
							  </tbody>
						 </table>  
						 <div class="pagination pagination-centered">
						  <ul>
							<li><a href="#">Prev</a></li>
							<li class="active">
							  <a href="#">1</a>
							</li>
							<li><a href="#">2</a></li>
							<li><a href="#">3</a></li>
							<li><a href="#">4</a></li>
							<li><a href="#">Next</a></li>
						  </ul>
						</div>     
					</div>
				</div><!--/span-->
				
				
			</div><!--/row-->
					<!-- content ends -->
			</div><!--/#content.span10-->
				</div><!--/fluid-row-->
			<!-- foot  begin -->
			<c:import url="../../../../common/jsp/bottom.jsp"></c:import>
			<!-- foot end -->		
	</div><!--/.fluid-container-->
</body>
</html>
